function reverseStr(str){
    // 单指针
    let reversed = '';
    for (let i = str.length - 1; i >= 0 ; i--) {
        reversed += str[i];
    }
    return reversed;
}
console.log(reverseStr("liujingmiao"));